package com.zy1;

public class Adapter extends AdvancedMediaPlayer{
    tradtionalPlay mp3;

    public Adapter(MP3 mp3) {
        this.mp3 = mp3;
    }
    public void mediaplay(){
        System.out.println("将MP3进行转换");
        mp3.play();
        System.out.println("对原有装置进行升级");
        AdvancedMediaPlayer mp4 = new MP4();
        AdvancedMediaPlayer avi= new AVI();
        mp4.playMp4();
        avi.playAvi();
    }
}
